home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / gems / gemsiii.lha / gemsIII / luminaire / special_instruction < prev    next >
Encoding:
Text File  |  1992-03-20  |  648 b   |  15 lines

  1. // ******************************************************************
  2. //
  3. // The following C++ code computes a sample point and its probability 
  4. // on the spherical or triangular luminaire according to the solid 
  5. // angle from the view point.  These are the center part of the direct 
  6. // lighting computation via Monte Carlo integration.
  7. //
  8. // The function hit() is assumed to exist. It returns the intersection 
  9. // point of a ray and a luminaire.
  10. //  
  11. // Use the command, CC -c *.c -lm, to compile (not link).  The code 
  12. // needs to be combined with a ray tracer to complete. 
  13. // ******************************************************************
  14.  
  15.